<?php
Class AdviseWidget extends CWidget {
    public $filetemp = 'advise';
    public $data = '';
    public function init(){//独立先执行    beginWidget();
    }  
    public function run(){//独立后执行     endWidget();   
        $this->render('advise/'.$this->filetemp,$content);
    }
}